using UnityEngine;

public class UpdateButton : MonoBehaviour
{
	public Camera mainCamera;

	private void Update()
	{
		RaycastHit hitInfo;
		if (Input.GetMouseButtonDown(0) && Physics.Raycast(mainCamera.ScreenPointToRay(UnityEngine.Input.mousePosition), out hitInfo, 100f) && hitInfo.collider.name == "Spin-Tops-Logo")
		{
			Application.OpenURL("market://details?id=fi.Miksumortti.SpinTops");
		}
	}
}
